package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallPaymentDO;
import com.starlink.model.request.MallPaymentRequest;
import com.starlink.model.vo.MallPaymentVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallPaymentDtoMapper {

    MallPaymentDtoMapper INSTANCE = Mappers.getMapper(MallPaymentDtoMapper.class);

    /**
    * DO to VO
    * @param mallPaymentDO
    * @return
    */
    MallPaymentVO do2VO(MallPaymentDO mallPaymentDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallPaymentDO request2DO(MallPaymentRequest request);
}
